package HttpCodeRegister

// AppHttpCodeEnum 错误码枚举
type AppHttpCodeEnum struct {
	Code int
	Msg  string
}

var (
	SUCCESS           = AppHttpCodeEnum{Code: 200, Msg: "操作成功"}
	NEED_LOGIN        = AppHttpCodeEnum{Code: 401, Msg: "需要登录后操作"}
	NO_OPERATOR_AUTH  = AppHttpCodeEnum{Code: 403, Msg: "无权限操作"}
	SYSTEM_ERROR      = AppHttpCodeEnum{Code: 500, Msg: "出现错误"}
	USERNAME_EXIST    = AppHttpCodeEnum{Code: 501, Msg: "用户名已存在"}
	PHONENUMBER_EXIST = AppHttpCodeEnum{Code: 502, Msg: "手机号已存在"}
	EMAIL_EXIST       = AppHttpCodeEnum{Code: 503, Msg: "邮箱已存在"}
	REQUIRE_USERNAME  = AppHttpCodeEnum{Code: 504, Msg: "必需填写用户名"}
	CONTENT_NOT_NULL  = AppHttpCodeEnum{Code: 506, Msg: "评论内容不能为空"}
	FILE_TYPE_ERROR   = AppHttpCodeEnum{Code: 507, Msg: "文件类型错误，请上传png文件"}
	USERNAME_NOT_NULL = AppHttpCodeEnum{Code: 508, Msg: "用户名不能为空"}
	NICKNAME_NOT_NULL = AppHttpCodeEnum{Code: 509, Msg: "昵称不能为空"}
	PASSWORD_NOT_NULL = AppHttpCodeEnum{Code: 510, Msg: "密码不能为空"}
	EMAIL_NOT_NULL    = AppHttpCodeEnum{Code: 511, Msg: "邮箱不能为空"}
	NICKNAME_EXIST    = AppHttpCodeEnum{Code: 512, Msg: "昵称已存在"}
	LOGIN_ERROR       = AppHttpCodeEnum{Code: 505, Msg: "用户名或密码错误"}
)
